package com.zh.autoconfigure;

import com.zh.properties.GeTuiProperties;
import com.zh.template.GetTuiTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.client.RestTemplate;


// 标记配置类
@Configuration
@EnableConfigurationProperties(GeTuiProperties.class)
// 导入配置
public class GeTuiAutoConfiguration {


    @Bean

    public GetTuiTemplate getTuiTemplate(GeTuiProperties geTuiProperties) {
        return new GetTuiTemplate(geTuiProperties);
    }
}
